<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ifelse</title>
    
</head>
<body>
    
    <!--view层，模板-->
    <div id="app">
        <ol v-for="(array, index) in arrays">
            {{array}}--{{index}}
        </ol>
    </div>
    
    <!--1.导入Vue.js-->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
    
    <script type="text/javascript">
        var vm = new Vue({
            el:"#app",
            /*Model：数据*/
            data:{
                arrays: [
                {message: "[]是数组"},
                {message: "{}是对象"},
                {message: "最后一个没逗号"}
                ]
            } 
        });
    </script>
</body>
</html>